<?php

class HashComponent extends Component {
	function generateHash($length) {
		$hash = hash('sha512', hash('sha512', hash( 'sha512', time())));
		return substr($hash, 0, $length);
	}
	function generateHash2($name, $length) {
		$hash = hash('sha512', hash('sha512', hash( 'sha512', $name)));
		return substr($hash, 0, $length);
	}
}

?>